package com.example.demo.utils;

import com.example.demo.vo.UserVO;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * 添加测试用户，换成加密过后的密码
 * Created by rex on 2017/6/26.
 */
public class PasswodGenerator {

    public String getPassword(String password){
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        return encoder.encode(password);
    }

}

